#被动技能【储能过载】
execute rotated ~ 0 positioned ^ ^ ^4.5 run summon lightning_bolt ~ ~ ~
execute rotated ~ 0 positioned ^ ^ ^7 run summon lightning_bolt ~ ~ ~

execute rotated ~ 0 positioned ^ ^ ^10 run particle minecraft:spit ~ ~0.5 ~ 0.3 0.2 0.3 0.01 7 normal @a
execute rotated ~ 0 positioned ^ ^ ^9 run particle minecraft:spit ~ ~0.5 ~ 0.3 0.2 0.3 0.01 7 normal @a
execute rotated ~ 0 positioned ^ ^ ^8 run particle minecraft:spit ~ ~0.5 ~ 0.3 0.2 0.3 0.01 7 normal @a
execute rotated ~ 0 positioned ^ ^ ^6 run particle minecraft:spit ~ ~0.5 ~ 0.3 0.2 0.3 0.01 7 normal @a
execute rotated ~ 0 positioned ^ ^ ^5 run particle minecraft:spit ~ ~0.5 ~ 0.3 0.2 0.3 0.01 7 normal @a
execute rotated ~ 0 positioned ^ ^ ^4 run particle minecraft:spit ~ ~0.5 ~ 0.3 0.2 0.3 0.01 7 normal @a
execute rotated ~ 0 positioned ^ ^ ^3 run particle minecraft:spit ~ ~0.5 ~ 0.3 0.2 0.3 0.01 7 normal @a
execute rotated ~ 0 positioned ^ ^ ^2 run particle minecraft:spit ~ ~0.5 ~ 0.3 0.2 0.3 0.01 7 normal @a
execute rotated ~ 0 positioned ^ ^ ^1 run particle minecraft:spit ~ ~0.5 ~ 0.3 0.2 0.3 0.01 7 normal @a
execute rotated ~ 0 positioned ^ ^ ^ run particle minecraft:spit ~ ~0.5 ~ 0.1 0.1 0.1 0.01 7 normal @a
execute rotated ~ 0 positioned ^ ^ ^-2 run particle minecraft:spit ~ ~0.5 ~ 0.1 0.1 0.1 0.01 7 normal @a
execute rotated ~ 0 positioned ^ ^ ^-4 run particle minecraft:spit ~ ~0.5 ~ 0.1 0.1 0.1 0.01 7 normal @a

give @s minecraft:iron_sword{AttributeModifiers: [{Operation: 0, Amount: +2, UUID: [I; 663036862, 1640954633, -338666533, 161028973], Slot: mainhand, AttributeName: "generic.attack_damage", Name: "generic.attackDamage"}, {Operation: 0, Amount: -0.5d, UUID: [I; 549422396, 1883818281, -346858830, -3017770], Slot: mainhand, AttributeName: "generic.attack_speed", Name: "generic.attackSpeed"}, {Operation: 1, Amount: 0.03d, UUID: [I; 615796433, 2110931210, -387854629, -431011304], Slot: mainhand, AttributeName: "generic.movement_speed", Name: "generic.movementSpeed"}], display: {Name: '[{"text":"蓄能电剑","color":"aqua","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}]', Lore: ['{"text":"被动技能【蓄能】","color":"dark_purple","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}', '{"text":"每次攻击回复5[能源储备]","color":"gold","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}', '{"text":"被动技能【储能过载】","color":"dark_purple","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}', '{"text":"每3次攻击会在前方释放2道雷电","color":"gold","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}', '{"text":"消耗：20[能源储备]","color":"dark_red","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}']}, Damage: 247} 1

scoreboard players remove @s skPlayer 20
execute if score @s skPlayer matches ..0 run effect give @s minecraft:instant_damage 1 0
scoreboard players set @s skIron_sword1 0